package com.study.controller;

import com.study.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: HelloController
 * @Description:
 * @author: WS
 * @date 2020/12/8
 * @Version: 1.0
 **/
@RestController
public class HelloController {
    @Autowired
    public HelloService service;
    @GetMapping("/hello")
    public String hello(){
        return  service.sayHello();
    }
}
